package question1;

import java.util.Iterator;
import java.util.Vector;

public class VectorTest1 {

	public static void main(String[] args) {

		/** The a., this is the vector a for input */
		Vector<Object> a = new Vector<Object>();

		/** The b., this is another vector which is to be used as input */
		Vector<Object> b = new Vector<Object>();

		a.add("sun");
		a.add("rise");
		a.add("morning");
		a.add("east");
		a.add("world");

		b.add("hello");
		b.add("world");
		b.add("good morning");
		b.add("world");
		b.add("hello");

//		Vector u = VectorUnion.union(null, b);
		
		Vector u = ModifiedVectorUnion.union(a, b);
		Iterator<Object> itu = u.iterator();
		while (itu.hasNext()) {
			Object objectu = (Object) itu.next();
			System.out.println(objectu);
		}

	}
}
